<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>

<title>Richlyn Systems | Website Design</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<?php
	
	echo $this->Html->css('style-duan');
	echo $this->Html->css('qtip');
	echo $this->Html->css('autocomplete/jquery.autocomplete');
	echo $this->Html->css('autocomplete/thickbox');
	echo $this->Html->css('editor/jHtmlArea');
	echo $this->Html->css('editor/jHtmlArea.ColorPickerMenu');
	echo $this->Html->script('autocomplete/jquery.js');
	echo $this->Html->script('autocomplete/jquery.bgiframe.min.js');
	echo $this->Html->script('autocomplete/jquery.ajaxQueue.js');
	echo $this->Html->script('autocomplete/thickbox-compressed.js');
	echo $this->Html->script('autocomplete/jquery.autocomplete.js');
	echo $this->Html->script('jquery.qtip-1.0.0-rc3.min.js');
	echo $this->Html->script('qtip/qtip.js');
	echo $this->Html->script('editor/jHtmlArea-0.7.0.min.js');
	echo $this->Html->script('editor/jHtmlArea.ColorPickerMenu-0.7.0.js');
	echo $this->Html->script('validator/jquery.validate.js');
	echo $this->Html->script('autogrow/jquery.autogrowtextarea.js');
?>

<script type="text/javascript">
	$(function() {
		function format(mail) {
			return mail.label;
		}
		$("#DuanField").autocomplete('<?php echo $this->webroot;?>/duans/autocomplete', {
			multiple: false,
			dataType: "json",
			parse: function(data) {
				return $.map(data, function(row) {
					return {
						data: row,
						value: row.value,
						result: row.label
					}
				});
			},
			formatItem: function(item) {
				return format(item);
			}
		}).result(function(e, item) {
			$("#idduan").val(item.id);
		});
	});
	$(document).ready(function(){
		install_qtip();
		$(".qtip-content").hide();
		$(".autogrow").autogrow();
		$("#textarea").htmlarea({

                toolbar: ["html", "|",
                        "forecolor",  // <-- Add the "forecolor" Toolbar Button
                        "|", "bold", "italic", "underline", "|", "p", "h1", "h2", "h3", "|", "link", "unlink"] // Overrides/Specifies the Toolbar buttons to show
                });

	});
</script>
</head>

<body>
      <div id="header">
            <div id="logo"><a href="<?php echo $this->webroot;?>" title="Trang chủ"></a></div>
      </div>
   
      <div id="container">
           
            <div id="content">
                  
				  <?php echo $content_for_layout;?>
                  <div id="rightdiv">
                     
                        <div class="submitbox">
								<p><span class="subheading">Tìm kiếm </span></p>
								<?php
									echo $this->Form->create('Duan', array('action' => 'search'));
									echo $this->Form->input('field', array('label' => ''));
									echo $this->Form->input('id', array('label' => '', 'id' => 'idduan', 'type' => 'hidden', 'name' => 'idduan'));
									$options = array(
														'label' => 'Tìm kiếm',
														'div' => array(
																		'class' => 'search-button',
																		)
													);
									echo $this->Form->end($options);
								?>
								
									
                              <!--<form id="form2" action="action">
                                    <table>
                                          <tr>
                                                <td><input style="width: 127px;" type="text" name="name" /></td>
                                                <td style="width: 100px;"><button type="submit" style="float: right;">Submit</button></td>
                                          </tr>
                                    </table>
                              </form>-->
                        </div>
                        <br />
                        
                        <?php echo $this->Html->image('photo.jpg', array('alt' => 'company location'))?>
                        <br /><br />
                        
                        <div id="news">
                              <h1 class="underline">Các lô cần bán của dự án</h1>
                              
                              <p>   
								<span class="subheading"><?php echo $duan['Duan']['loban']; ?></span><br />    
                              </p>
							  
                              
                        </div>
                  
                  </div>
                  
                 
                  
            </div>
            
      </div>
     
      <div id="footer">
            <div id="footertextleft">                 
                  <a href="index.html">Home</a> |
                  <a href="index.html">About Us</a> |
                  <a href="index.html">Products</a> |
                  <a href="index.html">Services</a> |
                  <a href="index.html">Price Guide</a> |
                  <a href="index.html">Locations</a> |
                  <a href="index.html">Contact Us</a>
            </div>
            <div id="footertextright">       
                  Copyright &copy; 2011 Your Company Name<br />
                  <!-- PLEASE LEAVE THIS SECTION UNCHANGED -->
                  <a href="http://www.richlyn.co.uk" title="Web Design">Web Design</a> by <a href="http://www.richlyn.co.uk" title="Web Design">Richlyn Systems Ltd</a>
                  <!--END-->           
            </div>
      
      </div>
      
<div style="text-align: center; font-size: 0.75em;">Design downloaded from <a href="http://www.freewebtemplates.com/">free website templates</a>.</div></body>
</html>
